package org.springblade.modules.repair.vo.statistics;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description 保养统计-工单分值占比
 * @Author ysq
 * @Date 2022/9/26
 **/
@Data
public class OrderScorePieCharVO {

	@ApiModelProperty(value = "已评分工单总数")
	private Long orderTotal;

	@ApiModelProperty(value = "0-60分")
	private BigDecimal value1;

	@ApiModelProperty(value = "60-80分")
	private BigDecimal value2;

	@ApiModelProperty(value = "80-100分")
	private BigDecimal value3;

	@ApiModelProperty(value = "100分以上")
	private BigDecimal value4;

	public BigDecimal getValue1() {
		if (this.value1 == null) {
			this.value1 = BigDecimal.ZERO;
		}
		return value1;
	}

	public BigDecimal getValue2() {
		if (this.value2 == null) {
			this.value2 = BigDecimal.ZERO;
		}
		return value2;
	}

	public BigDecimal getValue3() {
		if (this.value3 == null) {
			this.value3 = BigDecimal.ZERO;
		}
		return value3;
	}

	public BigDecimal getValue4() {
		if (this.value4 == null) {
			this.value4 = BigDecimal.ZERO;
		}
		return value4;
	}
}
